package br.com.afi.util.crypt.test;

import org.junit.Assert;
import org.junit.Test;

import br.com.afi.util.crypt.CryptoUtil;
import br.com.afi.util.crypt.HashMD5Algorithm;

public class CryptoTestCase
{
	@Test
	public void testHashMD5()
	{
		final CryptoUtil cryptoUtil = new CryptoUtil( new HashMD5Algorithm() );
		final String crypt = cryptoUtil.crypt( "senha" );
		
		Assert.assertTrue( crypt.equals( "e8d95a51f3af4a3b134bf6bb680a213a" ) );
		
	}
}
